home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-10-20 | 529 b | 33 lines | [TEXT/CWIE] |
- #include <iostream.h>
-
- void Display( short shortParam );
- void Display( long longParam );
- void Display( char *text );
-
- int main()
- {
- short myShort = 3;
- long myLong = 12345678L;
- char *text = "Make it so...";
-
- Display( myShort );
- Display( myLong );
- Display( text );
-
- return 0;
- }
-
- void Display( short shortParam )
- {
- cout << "The short is: " << shortParam << "\n";
- }
-
- void Display( long longParam )
- {
- cout << "The long is: " << longParam << "\n";
- }
-
- void Display( char *text )
- {
- cout << "The text is: " << text << "\n";
- }